import $http from "./requst";
// 登陆
export function passLogin(data) {
  return $http({
    url: `/admin/login/passLogin`,
    method: "POST",
    data,
  });
}
// 修改密码
export function updatePassword(data) {
  return $http({
    url: `/admin/Admin/updatePassword`,
    method: "POST",
    data,
  });
}
//数据统计-头部
export function homeHeadData(data) {
  return $http({
    url: `/admin`,
    method: "POST",
    data,
  });
}

//数据统计-近12月
export function homeMonthData(data) {
  return $http({
    url: `/admin/Index/data`,
    method: "POST",
    data,
  });
}
// 用户列表
export function User(data) {
  return $http({
    url: `/admin/User`,
    method: "POST",
    data,
  });
}
// 渠道商列表
export function channel(data) {
  return $http({
    url: `/admin/channel/list`,
    method: "POST",
    data,
  });
}
// 渠道商新增
export function channelAdd(data) {
  return $http({
    url: `/admin/channel/add`,
    method: "POST",
    data,
  });
}
// 渠道商删除
export function channelDel(data) {
  return $http({
    url: `/admin/channel/del`,
    method: "POST",
    data,
  });
}
// 渠道商编辑
export function channelEdit(data) {
  return $http({
    url: `/admin/channel/edit`,
    method: "POST",
    data,
  });
}
// 渠道商详情
export function channelDetail(data) {
  return $http({
    url: `/admin/channel/detail`,
    method: "POST",
    data,
  });
}

// 更改账号状态
export function checkStatus(data) {
  return $http({
    url: `/admin/channel/status`,
    method: "POST",
    data,
  });
}
// 授权记录
export function authRecord(data) {
  return $http({
    url: `/admin/authRecord/list`,
    method: "POST",
    data,
  });
}
